#pragma once
#include "Munition.h"
#include <GL/glut.h>

class MissileMunition: public Munition
{
public:
	MissileMunition(Map *);
	void display();
	void switchTexture();
	void setAngle(GLfloat);
	void animate();
	void reset();
	~MissileMunition(void);
private:
	void loadImage();

	GLuint currentTextureMissile;
	GLuint currentTextureM;
	GLuint textureMissile1;
	GLuint textureMissile2;
	GLuint textureM1;
	GLuint textureM2;
	GLUquadricObj* quad;

	GLfloat width;
	GLfloat lenght;
	GLfloat height;
	GLfloat sizeMissiles;
	GLfloat lenghtMissiles;
	GLfloat oldX;
	GLfloat oldZ;
	GLfloat angle;
	GLfloat angleAnimation;
};